<template>
    <Loading class="loading" :class="`is--${size}`"/>
</template>

<script setup>
const props = defineProps({
    size: {
        type: String,
        default: 'small'
    }
})
</script>

<style lang="scss">
.loading {
    width: 50px;
    height: 30px;
    animation: rotate 2.5s linear infinite;
    color: #bbb;
    &.is--large {
        width: 150px;
        height: 130px;
    }
}
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
</style>